#include "ConnectionListener.h"

#include "BufferedReader.h"

using namespace std;

ConnectionListener::ConnectionListener(IConnection& con)
	: _con(con)
{}


void ConnectionListener::run() {
	BufferedReader br(_con);
	while(true) {
		cout << br.readLine();
	}
}